package com.neu.service;

import java.sql.SQLException;

import com.neu.dao.UsersDao;
import com.neu.entity.TBUsers;


public class UsersService {
private UsersDao ud;
public UsersService() {
	
}
public UsersService(UsersDao ud) {
	this.ud=ud;
}

//  登录
public boolean select(String name,String pass)throws SQLException{
	return ud.loginValidate(name,pass);
}

//  注册  
public boolean registerUser(TBUsers tu)throws SQLException{
	return ud.registerUser(tu);
}
//  更新
public boolean update(TBUsers tu)throws SQLException{
	return ud.update(tu);
}
//  删除
public boolean delete(TBUsers tu)throws SQLException{
	return ud.delete(tu);
}
}
